import request from "@/utils/request";

const BaseUrl = '/api/driver'



// 添加运输路线
export function transportCreate(data: any){
    return request({
        url: BaseUrl +  '/transport/create',
        method: 'post',
        data:data,
    })
}



// 运输路线分页查询
export function transportPage(data: any){
    return request({
        url: BaseUrl +  '/transport/page',
        method: 'post',
        data:data,
    })
}

// 根据id获取运输信息
export function transportGetById(id: any){
    return request({
        url: BaseUrl +  '/transport/getById',
        method: 'get',
        params:{
            id: id
        }
    })
}

// 根据id删除运输信息
export function transportDelById(id: any){
    return request({
        url: BaseUrl +  '/transport/delById',
        method: 'delete',
        params:{
            id: id
        }
    })
}


// 承运商对司机信息分页查询
export function driverPage(data: any){
    return request({
        url: BaseUrl +  '/page',
        method: 'post',
        data: data,
    })
}


// 司机报价分页查询
export function driverToBePage(data: any){
    return request({
        url: BaseUrl +  '/toBe/page',
        method: 'post',
        data: data,
    })
}

// 司机报价
export function driverQuote(data: any){
    return request({
        url: BaseUrl +  '/toBe/quote',
        method: 'post',
        data: data,
    })
}